package cn.earl.springboot.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class UserUtil {

	/**
	 * 校验手机号的正确性
	 * 
	 * @param number
	 * @return
	 */
	public static boolean checkPhoneNumber(String number) {

		String regExp = "^((13[0-9])|(15[^4])|(18[0,2,3,5-9])|(17[0-8])|(147))\\d{8}$";
		Pattern p = Pattern.compile(regExp);
		Matcher m = p.matcher(number);
		return m.matches();

	}
}
